/**
 * Created by Administrator on 2018/6/1 0001.
 */
exports.handleError = ({ctx, message = "请求失败", err = null}) => {
    ctx.body = {code: 0, message, err}
}
exports.handleSuccess = ({ctx, message = "请求成功", data = null}) => {
    ctx.body = {code: 1, message, data}
}